;(function(){
var BusCon = require("../../core/bus/_con");
var db = require("../../core/db/index");
var config = require("../../core/_include/config");
var ResponObj = require("../_include/responObj");
var BuffCon = require("../../core/buff/_con");
var myfs = require("../_include/fs");
var theme = require("./theme");
var role = require("./role");
module.exports = {
	prefix:"/bus/bus_user",
	get:{
		"/":function () {
			var bus = role.getBus(this);
			var query = this.request.query;
			var result = bus.getBusUser_List(query.num,query.page);
			this.body = ResponObj("json",result);
		},
	},
	put:{
		"/state/申请兑换中_to_商家已经打款":function () {
			var bus = role.getBus(this);
			var user_id = this.request.body.user_id;
			if (!user_id) {
				throwCusError("参数错误")
			}
			var bus_user_bind = bus.bus_user_state_申请兑换中_to_商家已经打款(user_id);
			this.body = ResponObj("json",bus_user_bind);
		}
	}
}	
}());